<%@ page import="edu.uow.devdocs.DevelopmentTask" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'issue.label', default: 'Task')}" />
		<title><g:message code="default.edit.label" args="[entityName]" /></title>
	</head>
	<body>
			<g:flashMessage/>
			<g:hasErrors bean="${quickTaskInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${quickTaskInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
		<h1 id="quick_create">Create a Quick Task</h1>
		<g:form action="saveQuickTask" name="frmQuickTask" class="columns">
		<table class="searchable tableForm">
			<tr>
				<td class="fieldcontain"><label for="description"><g:message code="issue.description.label" default="Description" /></label></td>
				<td colspan="3" class="fieldcontain"><g:textField name="description" maxlength="255" class="form-text large"/></td>
			</tr>
			<tr>
				<td class="fieldcontain"><label for="issueType"><g:message code="issue.issueType.label" default="Issue Type" /></label></td>
				<td class="fieldcontain"><g:select id="issueType" name="issueType.id" from="${edu.uow.devdocs.IssueType.list()}" optionKey="id" required="" value="${issueInstance?.issueType?.id}" class="many-to-one"/></td>
				<td class="fieldcontain"><label for="project"><g:message code="issue.project.label" default="Project" /> <span class="required-indicator">*</span></label></td>
				<td class="fieldcontain"><g:select id="project" name="project.id" from="${projectList}" optionKey="id" required="" value="${issueInstance?.project?.id}" class="many-to-one"/></td>
			</tr>
			<tr>
				<td class="fieldcontain"><label for="deployment"><g:message code="issue.deployment.label" default="Deployment" /></label></td>
				<td class="fieldcontain"><g:select id="deployment" name="deployment.id" from="${deploymentList}" optionKey="id" value="${issueInstance?.deployment?.id}" class="many-to-one" noSelection="['null': '']"/></td>
				<td class="fieldcontain"><label for="person"><g:message code="assignment.person.label" default="Person" /></label></td>
				<td class="fieldcontain"><g:select id="person" name="person.id" from="${edu.uow.devdocs.Person.list()}" optionKey="id" required="" class="many-to-one" noSelection="['null': '']"/></td>
			</tr>
		</table>
		<fieldset class="form-actions">
			<g:actionSubmit class="save" action="saveQuickTask" value="${message(code: 'default.button.create.label', default: 'Create')}" />
		</fieldset>
		</g:form>
	</body>
</html>